package ShardSystem;

import java.util.ArrayList;

/**
 *
 * @author David
 */
public class Trader extends GridObject {
    
    private String name        = null;
    private int balance;
    private ArrayList products = new ArrayList();
    private int location_x;
    private int location_y;

    public Trader(String name, int balance, int location_x, int location_y) {
        this.name       = name;
        this.balance    = balance;
        this.location_x = location_x;
        this.location_y = location_y;
    }
    
    /**
     * @return the name
     */
    public String getName() { return name; }

    /**
     * @param name the name to set
     */
    public void setName(String name) { this.name = name; }

    /**
     * @return the balance
     */
    public int getBalance() { return balance; }

    /**
     * @param balance the balance to set
     */
    public void setBalance(int balance) {
        this.balance = balance;
    }

    /**
     * @return the products
     */
    public ArrayList getProducts() {
        return products;
    }

    /**
     * @param products the products to set
     */
    public void setProducts(ArrayList products) {
        this.products = products;
    }

    /**
     * @return the location_x
     */
    public int getLocation_x() {
        return location_x;
    }

    /**
     * @param location_x the location_x to set
     */
    public void setLocation_x(int location_x) {
        this.location_x = location_x;
    }

    /**
     * @return the location_y
     */
    public int getLocation_y() {
        return location_y;
    }

    /**
     * @param location_y the location_y to set
     */
    public void setLocation_y(int location_y) {
        this.location_y = location_y;
    }
}
